<?php

namespace frontend\modules\app\controllers;

use Yii;
use frontend\components\Controller;
use frontend\modules\app\models\ServiceHomeSearch;
use frontend\modules\app\models\CustomerServiceSearch;

/**
 * 用户服务中心
 *
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class ServiceController extends Controller {

    /**
     * {@inheritdoc}
     */
    protected function verbs() {
        return [
            '*' => ['GET'],
        ];
    }

    /**
     * 联系客服
     *
     * @inheritdoc
     */
    public function actionConnect() {
        $model = new CustomerServiceSearch();
        return $model->connect($this->uid);
    }

}
